/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model.Bo;

import Model.Dao.CategoryDao;
import Model.Dao.CustomerDao;
import Model.Dao.DataAccess;
import java.util.List;
import Model.Entity.CustomerEntity;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
 *
 * @author Trung
 */
public class CustomerBO {
    public List<CustomerEntity> getAll(){
        CustomerDao cate = new CustomerDao();
        return cate.getAll();
    }
    
    public Boolean createCustomer(CustomerEntity customer ){
        CustomerDao cate = new CustomerDao();
        return cate.createCustomer(customer);    
    }
    
    public Boolean checkCustomer (CustomerEntity customer ){
        CustomerDao cate = new CustomerDao();
        return cate.checkCustomer(customer);
    }
}
